﻿using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Zzt.ExpertsCore.Domain.Entities;
using Zzt.ExpertsCore.Domain.Repository;

namespace Zzt.ExpertsCore.Web.Controllers
{
    public class HomeTestController : Controller
    {
        private readonly IRepository<Company> _companyRepository;

        public HomeTestController(IRepository<Company> companyRepository)
        {
            _companyRepository = companyRepository;
        }

        public async Task<string> Index()
        {
            var list = await _companyRepository.Query("select * from ZZT_EXPERTS_COMPANY");
            //return View(list);
            return "sdfsdfasdf";
        }
    }
}